.class public Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;

# interfaces
.implements Landroid/text/TextWatcher;
.implements Landroid/view/View$OnClickListener;
.implements Landroid/view/View$OnTouchListener;
.implements Landroid/widget/AdapterView$OnItemClickListener;
.implements Lcom/baidu/mapapi/search/poi/OnGetPoiSearchResultListener;
.implements Lcom/waiqin365/lightapp/dailyreport/view/aa;


# instance fields
.field private a:Landroid/widget/EditText;

.field private b:Landroid/widget/ImageView;

.field private c:Landroid/widget/TextView;

.field private d:Landroid/widget/ImageView;

.field private e:Landroid/widget/TextView;

.field private f:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

.field private g:Lcom/waiqin365/lightapp/kehu/b/bu;

.field private h:Ljava/util/List;

.field private i:Landroid/view/inputmethod/InputMethodManager;

.field private j:Lcom/baidu/mapapi/search/poi/PoiSearch;

.field private k:D

.field private l:D

.field private m:I

.field private n:Lcom/waiqin365/lightapp/kehu/fm;

.field private o:Lcom/waiqin365/compons/c/g;

.field private p:Lcom/waiqin365/compons/c/f;

.field private q:Lcom/waiqin365/lightapp/view/hr;


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->j:Lcom/baidu/mapapi/search/poi/PoiSearch;

    const/4 v0, 0x0

    iput v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->m:I

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;D)D
    .locals 1

    iput-wide p1, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->k:D

    return-wide p1
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;Lcom/waiqin365/compons/c/f;)Lcom/waiqin365/compons/c/f;
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->p:Lcom/waiqin365/compons/c/f;

    return-object p1
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;)V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->g()V

    return-void
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;D)D
    .locals 1

    iput-wide p1, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->l:D

    return-wide p1
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;)V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->h()V

    return-void
.end method

.method static synthetic c(Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;)V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->j()V

    return-void
.end method

.method static synthetic d(Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;)Lcom/waiqin365/compons/c/f;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->p:Lcom/waiqin365/compons/c/f;

    return-object v0
.end method

.method private d()V
    .locals 6

    const-wide/16 v4, 0x0

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "lat"

    invoke-virtual {v0, v1, v4, v5}, Landroid/content/Intent;->getDoubleExtra(Ljava/lang/String;D)D

    move-result-wide v2

    iput-wide v2, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->k:D

    const-string/jumbo v1, "lng"

    invoke-virtual {v0, v1, v4, v5}, Landroid/content/Intent;->getDoubleExtra(Ljava/lang/String;D)D

    move-result-wide v0

    iput-wide v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->l:D

    invoke-static {}, Lcom/baidu/mapapi/search/poi/PoiSearch;->newInstance()Lcom/baidu/mapapi/search/poi/PoiSearch;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->j:Lcom/baidu/mapapi/search/poi/PoiSearch;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->j:Lcom/baidu/mapapi/search/poi/PoiSearch;

    invoke-virtual {v0, p0}, Lcom/baidu/mapapi/search/poi/PoiSearch;->setOnGetPoiSearchResultListener(Lcom/baidu/mapapi/search/poi/OnGetPoiSearchResultListener;)V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->h:Ljava/util/List;

    new-instance v0, Lcom/waiqin365/lightapp/kehu/b/bu;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->h:Ljava/util/List;

    invoke-direct {v0, p0, v1}, Lcom/waiqin365/lightapp/kehu/b/bu;-><init>(Landroid/content/Context;Ljava/util/List;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->g:Lcom/waiqin365/lightapp/kehu/b/bu;

    const-string/jumbo v0, "input_method"

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/inputmethod/InputMethodManager;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->i:Landroid/view/inputmethod/InputMethodManager;

    return-void
.end method

.method private e()V
    .locals 2

    const v0, 0x7f0c02fa

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->a:Landroid/widget/EditText;

    const v0, 0x7f0c020c

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->c:Landroid/widget/TextView;

    const v0, 0x7f0c0086

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->d:Landroid/widget/ImageView;

    const v0, 0x7f0c01da

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->b:Landroid/widget/ImageView;

    const v0, 0x7f0c0133

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->f:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    const v0, 0x7f0c02fb

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->e:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->f:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->a(Z)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->f:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    invoke-virtual {v0, p0}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setonHistoryListener(Lcom/waiqin365/lightapp/dailyreport/view/aa;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->f:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    invoke-virtual {v0, p0}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->f:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    invoke-virtual {v0, p0}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->f:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->g:Lcom/waiqin365/lightapp/kehu/b/bu;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setAdapter(Landroid/widget/BaseAdapter;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->f:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->f()V

    return-void
.end method

.method private f()V
    .locals 2

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->c:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->d:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->a:Landroid/widget/EditText;

    invoke-virtual {v0, p0}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->b:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->a:Landroid/widget/EditText;

    new-instance v1, Lcom/waiqin365/lightapp/kehu/fk;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/kehu/fk;-><init>(Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setOnEditorActionListener(Landroid/widget/TextView$OnEditorActionListener;)V

    return-void
.end method

.method private g()V
    .locals 8

    const-wide/16 v2, 0x0

    iget-wide v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->k:D

    cmpl-double v0, v0, v2

    if-lez v0, :cond_0

    iget-wide v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->l:D

    cmpl-double v0, v0, v2

    if-lez v0, :cond_0

    const v0, 0x7f080722

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->showProgressDialog(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->g:Lcom/waiqin365/lightapp/kehu/b/bu;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->a:Landroid/widget/EditText;

    invoke-virtual {v1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/kehu/b/bu;->a(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->j:Lcom/baidu/mapapi/search/poi/PoiSearch;

    new-instance v1, Lcom/baidu/mapapi/search/poi/PoiNearbySearchOption;

    invoke-direct {v1}, Lcom/baidu/mapapi/search/poi/PoiNearbySearchOption;-><init>()V

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->a:Landroid/widget/EditText;

    invoke-virtual {v2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/baidu/mapapi/search/poi/PoiNearbySearchOption;->keyword(Ljava/lang/String;)Lcom/baidu/mapapi/search/poi/PoiNearbySearchOption;

    move-result-object v1

    iget v2, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->m:I

    invoke-virtual {v1, v2}, Lcom/baidu/mapapi/search/poi/PoiNearbySearchOption;->pageNum(I)Lcom/baidu/mapapi/search/poi/PoiNearbySearchOption;

    move-result-object v1

    const/16 v2, 0xa

    invoke-virtual {v1, v2}, Lcom/baidu/mapapi/search/poi/PoiNearbySearchOption;->pageCapacity(I)Lcom/baidu/mapapi/search/poi/PoiNearbySearchOption;

    move-result-object v1

    new-instance v2, Lcom/baidu/mapapi/model/LatLng;

    iget-wide v4, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->k:D

    iget-wide v6, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->l:D

    invoke-direct {v2, v4, v5, v6, v7}, Lcom/baidu/mapapi/model/LatLng;-><init>(DD)V

    invoke-virtual {v1, v2}, Lcom/baidu/mapapi/search/poi/PoiNearbySearchOption;->location(Lcom/baidu/mapapi/model/LatLng;)Lcom/baidu/mapapi/search/poi/PoiNearbySearchOption;

    move-result-object v1

    const/16 v2, 0x2710

    invoke-virtual {v1, v2}, Lcom/baidu/mapapi/search/poi/PoiNearbySearchOption;->radius(I)Lcom/baidu/mapapi/search/poi/PoiNearbySearchOption;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/baidu/mapapi/search/poi/PoiSearch;->searchNearby(Lcom/baidu/mapapi/search/poi/PoiNearbySearchOption;)Z

    :goto_0
    return-void

    :cond_0
    invoke-direct {p0}, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->i()V

    goto :goto_0
.end method

.method private h()V
    .locals 3

    const/4 v2, 0x2

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/Window;->getAttributes()Landroid/view/WindowManager$LayoutParams;

    move-result-object v0

    iget v0, v0, Landroid/view/WindowManager$LayoutParams;->softInputMode:I

    if-eq v0, v2, :cond_0

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->getCurrentFocus()Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->i:Landroid/view/inputmethod/InputMethodManager;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->getCurrentFocus()Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/View;->getWindowToken()Landroid/os/IBinder;

    move-result-object v1

    invoke-virtual {v0, v1, v2}, Landroid/view/inputmethod/InputMethodManager;->hideSoftInputFromWindow(Landroid/os/IBinder;I)Z

    :cond_0
    return-void
.end method

.method private i()V
    .locals 2

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->n:Lcom/waiqin365/lightapp/kehu/fm;

    if-nez v0, :cond_0

    new-instance v0, Lcom/waiqin365/lightapp/kehu/fm;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/kehu/fm;-><init>(Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->n:Lcom/waiqin365/lightapp/kehu/fm;

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->o:Lcom/waiqin365/compons/c/g;

    if-nez v0, :cond_1

    new-instance v0, Lcom/waiqin365/compons/c/g;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->n:Lcom/waiqin365/lightapp/kehu/fm;

    invoke-direct {v0, v1}, Lcom/waiqin365/compons/c/g;-><init>(Lcom/waiqin365/compons/c/l;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->o:Lcom/waiqin365/compons/c/g;

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->o:Lcom/waiqin365/compons/c/g;

    invoke-virtual {v0}, Lcom/waiqin365/compons/c/g;->c()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->o:Lcom/waiqin365/compons/c/g;

    const/16 v1, 0x2710

    invoke-virtual {v0, v1}, Lcom/waiqin365/compons/c/g;->a(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->o:Lcom/waiqin365/compons/c/g;

    invoke-virtual {v0, p0}, Lcom/waiqin365/compons/c/g;->a(Landroid/content/Context;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->o:Lcom/waiqin365/compons/c/g;

    invoke-virtual {v0}, Lcom/waiqin365/compons/c/g;->e()V

    return-void
.end method

.method private j()V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->o:Lcom/waiqin365/compons/c/g;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->o:Lcom/waiqin365/compons/c/g;

    invoke-virtual {v0}, Lcom/waiqin365/compons/c/g;->f()V

    :cond_0
    return-void
.end method


# virtual methods
.method public a()V
    .locals 0

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->c()V

    return-void
.end method

.method public afterTextChanged(Landroid/text/Editable;)V
    .locals 3

    const/4 v2, 0x0

    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->c:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setEnabled(Z)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->d:Landroid/widget/ImageView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->f:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->f()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->h:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->g:Lcom/waiqin365/lightapp/kehu/b/bu;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/b/bu;->notifyDataSetChanged()V

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->c:Landroid/widget/TextView;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setEnabled(Z)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->d:Landroid/widget/ImageView;

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_0
.end method

.method public b()V
    .locals 4

    const-string/jumbo v0, "showCustomerMapLableGuide"

    const/4 v1, 0x1

    invoke-static {p0, v0, v1}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/content/Context;Ljava/lang/String;Z)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->q:Lcom/waiqin365/lightapp/view/hr;

    if-nez v0, :cond_0

    new-instance v0, Lcom/waiqin365/lightapp/view/hr;

    const v1, 0x7f0c020c

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    invoke-direct {v0, p0, v1}, Lcom/waiqin365/lightapp/view/hr;-><init>(Landroid/content/Context;Landroid/view/View;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->q:Lcom/waiqin365/lightapp/view/hr;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->q:Lcom/waiqin365/lightapp/view/hr;

    const v1, 0x7f0800b8

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/hr;->a(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->q:Lcom/waiqin365/lightapp/view/hr;

    new-instance v1, Lcom/waiqin365/lightapp/kehu/fl;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/kehu/fl;-><init>(Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/hr;->a(Landroid/widget/PopupWindow$OnDismissListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->q:Lcom/waiqin365/lightapp/view/hr;

    sget-object v1, Lcom/waiqin365/lightapp/view/ht;->c:Lcom/waiqin365/lightapp/view/ht;

    sget-object v2, Lcom/waiqin365/lightapp/view/hu;->a:Lcom/waiqin365/lightapp/view/hu;

    const/16 v3, 0x7b

    invoke-virtual {v0, v1, v2, v3}, Lcom/waiqin365/lightapp/view/hr;->a(Lcom/waiqin365/lightapp/view/ht;Lcom/waiqin365/lightapp/view/hu;I)V

    :cond_0
    return-void
.end method

.method public beforeTextChanged(Ljava/lang/CharSequence;III)V
    .locals 0

    return-void
.end method

.method public c()V
    .locals 1

    iget v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->m:I

    add-int/lit8 v0, v0, 0x1

    iput v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->m:I

    invoke-direct {p0}, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->g()V

    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 2

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    sparse-switch v0, :sswitch_data_0

    :goto_0
    return-void

    :sswitch_0
    invoke-direct {p0}, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->g()V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->h()V

    goto :goto_0

    :sswitch_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->a:Landroid/widget/EditText;

    const-string/jumbo v1, ""

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    :sswitch_2
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->back()V

    goto :goto_0

    :sswitch_data_0
    .sparse-switch
        0x7f0c0086 -> :sswitch_1
        0x7f0c01da -> :sswitch_2
        0x7f0c020c -> :sswitch_0
    .end sparse-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 1

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    invoke-static {p0}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/app/Activity;)V

    const v0, 0x7f030076

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->setContentView(I)V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->d()V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->e()V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->f()V

    return-void
.end method

.method protected onDestroy()V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->j:Lcom/baidu/mapapi/search/poi/PoiSearch;

    invoke-virtual {v0}, Lcom/baidu/mapapi/search/poi/PoiSearch;->destroy()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->o:Lcom/waiqin365/compons/c/g;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->o:Lcom/waiqin365/compons/c/g;

    invoke-virtual {v0}, Lcom/waiqin365/compons/c/g;->h()V

    :cond_0
    invoke-super {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onDestroy()V

    return-void
.end method

.method public onGetPoiDetailResult(Lcom/baidu/mapapi/search/poi/PoiDetailResult;)V
    .locals 4

    const/16 v3, 0x8

    const/4 v2, 0x0

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->dismissProgressDialog()V

    iget-object v0, p1, Lcom/baidu/mapapi/search/poi/PoiDetailResult;->error:Lcom/baidu/mapapi/search/core/SearchResult$ERRORNO;

    sget-object v1, Lcom/baidu/mapapi/search/core/SearchResult$ERRORNO;->NO_ERROR:Lcom/baidu/mapapi/search/core/SearchResult$ERRORNO;

    if-eq v0, v1, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->f:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    invoke-virtual {v0, v3}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->e:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setVisibility(I)V

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->f:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->e:Landroid/widget/TextView;

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_0
.end method

.method public onGetPoiIndoorResult(Lcom/baidu/mapapi/search/poi/PoiIndoorResult;)V
    .locals 0

    return-void
.end method

.method public onGetPoiResult(Lcom/baidu/mapapi/search/poi/PoiResult;)V
    .locals 5

    const/16 v4, 0x8

    const/4 v3, 0x0

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->dismissProgressDialog()V

    if-eqz p1, :cond_0

    iget-object v0, p1, Lcom/baidu/mapapi/search/poi/PoiResult;->error:Lcom/baidu/mapapi/search/core/SearchResult$ERRORNO;

    sget-object v1, Lcom/baidu/mapapi/search/core/SearchResult$ERRORNO;->RESULT_NOT_FOUND:Lcom/baidu/mapapi/search/core/SearchResult$ERRORNO;

    if-ne v0, v1, :cond_1

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->h:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->g:Lcom/waiqin365/lightapp/kehu/b/bu;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/b/bu;->notifyDataSetChanged()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->f:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    invoke-virtual {v0, v4}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->e:Landroid/widget/TextView;

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setVisibility(I)V

    :goto_0
    return-void

    :cond_1
    invoke-virtual {p1}, Lcom/baidu/mapapi/search/poi/PoiResult;->getTotalPageNum()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    invoke-virtual {p1}, Lcom/baidu/mapapi/search/poi/PoiResult;->getCurrentPageNum()I

    move-result v1

    if-ne v0, v1, :cond_3

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->f:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->f()V

    :goto_1
    invoke-virtual {p1}, Lcom/baidu/mapapi/search/poi/PoiResult;->getCurrentPageNum()I

    move-result v0

    if-nez v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->h:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    :cond_2
    invoke-virtual {p1}, Lcom/baidu/mapapi/search/poi/PoiResult;->getAllPoi()Ljava/util/List;

    move-result-object v0

    if-eqz v0, :cond_4

    invoke-virtual {p1}, Lcom/baidu/mapapi/search/poi/PoiResult;->getAllPoi()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_2
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_5

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/baidu/mapapi/search/core/PoiInfo;

    new-instance v2, Lcom/waiqin365/lightapp/kehu/b/bw;

    invoke-direct {v2, v0}, Lcom/waiqin365/lightapp/kehu/b/bw;-><init>(Lcom/baidu/mapapi/search/core/PoiInfo;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->h:Ljava/util/List;

    invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->f:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    invoke-virtual {v0, v3}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->e:Landroid/widget/TextView;

    invoke-virtual {v0, v4}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_2

    :cond_3
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->f:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->g()V

    goto :goto_1

    :cond_4
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->f:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    invoke-virtual {v0, v4}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->e:Landroid/widget/TextView;

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setVisibility(I)V

    :cond_5
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->g:Lcom/waiqin365/lightapp/kehu/b/bu;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/b/bu;->notifyDataSetChanged()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->f:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->d()V

    goto :goto_0
.end method

.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 3

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->h:Ljava/util/List;

    add-int/lit8 v1, p3, -0x1

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/b/bw;

    new-instance v1, Landroid/content/Intent;

    invoke-direct {v1}, Landroid/content/Intent;-><init>()V

    const-string/jumbo v2, "cmPoiInfo"

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    const/4 v0, -0x1

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->setResult(ILandroid/content/Intent;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->back()V

    return-void
.end method

.method public onTextChanged(Ljava/lang/CharSequence;III)V
    .locals 0

    return-void
.end method

.method public onTouch(Landroid/view/View;Landroid/view/MotionEvent;)Z
    .locals 1

    invoke-direct {p0}, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->h()V

    const/4 v0, 0x0

    return v0
.end method

.method public onWindowFocusChanged(Z)V
    .locals 0

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onWindowFocusChanged(Z)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/CMPoiSearchActivity;->b()V

    return-void
.end method
